package com.wideplay.warp.util;

/**
 * Created with IntelliJ IDEA.
 * On: 17/10/2007
 *
 * @author Dhanji R. Prasanna
 * @since 1.0
 */
public class Strings {
    private Strings() {
    }

    public static void nonEmpty(String s, String msg) {
        if (null == s)
            throw new NullPointerException(msg);

        if ("".equals(s.trim()))
            throw new IllegalArgumentException(msg);
    }
}
